from parse_books import get_html, get_books
import json


def main():
    # get_html(url='https://www.livelib.ru/genre/Классическая-литература')
    with open('classical_books_page_1.json', 'w', encoding='utf-8') as file:
        json.dump(obj=get_books(), fp=file, indent=2, ensure_ascii=False)


if __name__ == '__main__':
    main()
